<?php

require_once 'phpmoko/ui/Panel.php';

class Div extends Panel
{
	function __construct()
	{
		parent::__construct();
	}

	function getTag()
	{
		return $this->tag;
	}
	
	function toString()
	{
		$str = '<div';

		if ($this->id != null)
			$str .= ' id="'.$this->id.'"';

		if ($this->style != null)
			$str .= ' class="'.$this->style.'"';
			
		$str .= '>';

		foreach ($this as $widget)
			$str .= $widget->toString();

		$str .= '</div>';

		return $str;
	}
}
?>